import 'package:flutter/material.dart';
import 'package:getx_scaffold/getx_scaffold.dart';
import 'package:oramemo/common/res/gaps.dart';
import 'package:oramemo/common/langs/text_key.dart';

class AvatarPickerDialog extends StatelessWidget {
  final Function() onCameraTap;
  final Function() onGalleryTap;

  const AvatarPickerDialog({
    super.key,
    required this.onCameraTap,
    required this.onGalleryTap,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.all(15),
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          ListTile(
            leading: const Icon(Icons.camera_alt),
            title: Text(TextKey.avatarCamera.tr),
            onTap: () {
              Navigator.pop(context);
              onCameraTap();
            },
          ),
          Gaps.line,
          ListTile(
            leading: const Icon(Icons.photo_library),
            title: Text(TextKey.avatarGallery.tr),
            onTap: () {
              Navigator.pop(context);
              onGalleryTap();
            },
          ),
        ],
      ),
    );
  }
} 